﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="SysManager_UserList"
    EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户列表</title>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/btnsty.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 96%; height: 100%;">
        <div class="rptTitle">
            <b>用户列表</b>
        </div>
        <div class="param_div">
            <div class="input-group" style="width:280px">
                <span class="input-group-addon">搜索：</span>
                <asp:TextBox ID="txtuser" class="form-control" runat="server" placeholder="输入用户/编号"></asp:TextBox>
                <asp:LinkButton class="button x_small medium-blue" ID="btnFind" runat="server" OnClick="btnFind_Click">查找</asp:LinkButton>
            </div>
            <div style="float: right;">
                <asp:LinkButton class="button small medium-red" ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">新增</asp:LinkButton>
                <asp:LinkButton class="button small medium-blue" ID="LinkButton1" runat="server"
                    OnClick="LinkButton1_Click">刷新</asp:LinkButton>
                <asp:LinkButton ID="Button2" runat="server" Text="导出EXCEL" class="button small medium-blue"
                    OnClick="Button2_Click" />
            </div>
        </div>
        <div class="grid_div mycss">
            <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#3366CC"
                BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False"
                EmptyDataText="暂无数据" Width="96%" ShowHeaderWhenEmpty="True" OnRowDataBound="GridView1_RowDataBound"
                AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20"
                OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:BoundField DataField="UserCode" HeaderText="用户编号" />
                    <asp:BoundField DataField="UserName" HeaderText="用户名称" />
                    <asp:BoundField DataField="Mobile" HeaderText="联系电话" />
                    <asp:BoundField DataField="CreateDate" HeaderText="创建时间" />
                    <asp:BoundField DataField="ModifyDate" HeaderText="修改时间" />
                    <asp:BoundField DataField="Block" HeaderText="启用" />
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton class="button x_small medium-blue" ID="btnOpen" runat="server" CommandName="BtnOpen"
                                CommandArgument='<%# Eval("UserID")%>'>启用</asp:LinkButton>
                            <asp:LinkButton class="button x_small medium-red" ID="btnStop" runat="server" CommandName="btnStop"
                                CommandArgument='<%# Eval("UserID")%>'>停用</asp:LinkButton>
                            <asp:LinkButton class="button x_small medium-blue" ID="btnDtl" runat="server" CommandName="btnDtl"
                                CommandArgument='<%# Eval("UserID")%>'>详细</asp:LinkButton>
                            <asp:LinkButton class="button x_small medium-red" ID="BtnDle" runat="server" CommandName="BtnDle"
                                CommandArgument='<%# Eval("UserID")%>'>删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#1f558a" Font-Bold="True" ForeColor="white" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
